const express = require('express');

const app = express();

app.get('/home', (request, response) => {
    response.sendFile(__dirname + '/index.html');
});

app.all('/server', (request, response) => {
    response.setHeader('Access-Control-Allow-Origin','*');
    response.setHeader('Access-Control-Allow-Headers','*');

    response.send('OK');
})

app.listen(80, () => {
    console.log('服务已经启动....');
})
